package word_help;

import java.util.Map;
import java.util.TreeMap;

/**
 * User: luotao
 * Date: 11-9-20
 * Time: 16:02:00
 */
public class Unit {
    public String name;

    public Map<String,Word> words = new TreeMap<String, Word>();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Map<String, Word> getWords() {
        return words;
    }

    public void setWords(Map<String, Word> words) {
        this.words = words;
    }

    public void addWord(Word word){
        words.put(word.getEnName(),word);
    }

    @Override
    public String toString() {
        return getName();
    }
    
    
}
